<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false" session="true"%>
<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html>
<head>
    <base href="<%=basePath%>">
    <title>点巡检任务执行</title>
    <%@ include file="/page/comPage/comCSS.html"%>
    <%@ include file="/page/comPage/navbar.html"%>
</head>
<body>
	<div class="container-fluid">
	    <div class="col-sm-12 btnDivCss">
	       <%-- <button class="btn btn-info" id="query_btn"><s:message code="QUERY_TAG" /></button>--%>
        	<input id="select_btn"  type="file" class="form-control  file" accept=".xls,.xlsx" style="display: none" />
			   <button class="btn btn-info" id="query_btn">查询</button>
			<button class="btn btn-primary" id="excute_btn">执行</button>
			<button class="btn btn-success" id="save_btn">任务结单</button>
	    </div>
	    <div class="col-sm-12" id="leftDiv">
			<fieldset>
				<legend>查询条件</legend>
			</fieldset>
			<form id="pmItemConditionForm" class="form-horizontal">
				<div class="row">
					<div class="control-group col-sm-4">
						<label class="control-label col-sm-4" for="from_date">
							任务计划开始时间
						</label>
						<div class="col-sm-6">
							<input id = "from_date" type="text" class="form-control">
						</div>
					</div>

					<div class="control-group col-sm-4">
						<label class="control-label col-sm-4" for="to_date">
							任务计划结束时间
						</label>
						<div class="col-sm-6">
							<input id = "to_date" type="text" class="form-control">
						</div>
					</div>

					<div class="control-group col-sm-4">
						<label class="control-label col-sm-4" for="insTypeSel">
							点巡检类型
						</label>
						<div class="col-sm-6">
							<select id="insTypeSel" class="form-control"></select>
						</div>
					</div>
				</div>
			</form>
		</div>

		<div class="col-sm-3" id="divTop">
		    <fieldset>
                <legend>点巡检任务列表</legend>
            </fieldset>
			<div id="insListDiv">
				<table id="insListGrd" style="height: 1px;"></table>
				<div id="insListPg"></div>
			</div>
		</div>

		<div class="col-sm-3" id="divTop2">
			<fieldset>
				<legend>设备列表</legend>
			</fieldset>
			<div class="row">
			<div class="col-lg-12 col-md-12 col-sm-12" >
				<button class="btn btn-primary " id="add_tool_btn">
					<s:message code="ADD_TAG" />
				</button>
				<button class="btn btn-danger " id="del_tool_btn">
					<s:message code="DELETE_TAG" />
				</button>
			</div>
			</div>
			<div id="toolListDiv">
				<table id="toolListGrd" style="height: 1px;"></table>
				<div id="toolListPg"></div>
			</div>
		</div>

		<div class="col-sm-6" id="divTop3">
			<fieldset>
				<legend>点巡检项目</legend>
			</fieldset>
			<div class="row">
				<div class="col-lg-12 col-md-12 col-sm-12" >
					<button class="btn btn-primary " id="saveToolIns_btn">
						保存记录
					</button>
				</div>
			</div>

			<div id="insItemListDiv">
				<table id="insItemListGrd" style="height: 1px;"></table>
				<div id="insItemListPg"></div>
			</div>
		</div>

	</div>

	<%--新增设备对话框--%>
	<div id="addToolDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h3 class="modal-title">
					<%--	<span id="PMItemDialog_titleTxt" class="help-inline"></span>--%>
						新增设备
					</h3>
				</div>
				<!--Modal header-->
				<div class="modal-body">
					<form id="addToolDialogeForm" class="form-horizontal row">
						<label class="control-label col-sm-4" for="fabIdFk">
							厂别
						</label>
						<div class="col-sm-8">
							<select id="fabIdFk" class="form-control"></select>
						</div>
						<label class="control-label col-sm-4" for="lineIdFk">
							线别
						</label>
						<div class="col-sm-8">
							<select id="lineIdFk" class="form-control"></select>
						</div>
						<label class="control-label col-sm-4" for="toolIdFk">
							设备代码
						</label>
						<div class="col-sm-8">
							<select id="toolIdFk" class="form-control"></select>
						</div>
					</form>
				</div>
				<!--Modal body-->
				<div class="modal-footer">
					<a id="addToolDialog_cancelBtn" class="btn" data-dismiss="modal"> <s:message code="CANCEL_TAG" />
					</a> <a id="addToolDialog_saveBtn" class="btn btn-primary"> <s:message code="SURE_TAG" />
				</a>
				</div>
				<!--Modal footer-->
			</div>
		</div>
	</div>

	<!-- 保养项目新增&修改 Dialog -->
	<div id="PMItemDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h3 class="modal-title">
						<span id="PMItemDialog_titleTxt" class="help-inline"></span>
                       </h3>
				</div>
				<!--Modal header-->
				<div class="modal-body">
					<form id="PMItemDialog_dataCateForm" class="form-horizontal row">
						<label class="control-label col-sm-4 keyClass" for="PMItemDialog_pmTypeSel">
							点巡检类型
						</label>
						<div class="col-sm-6">
							<select id="PMItemDialog_pmTypeSel" class="form-control"></select>
						</div>
						<label class="control-label col-sm-4 keyClass" for="PMItemDialog_dataDscTxt">
							点巡检项目名称
						</label>
						<div class="col-sm-6">
							<input type="text" id="PMItemDialog_dataDscTxt" class="form-control"/>
						</div>
						<label class="control-label col-sm-4" for="PMItemDialog_uSpecTxt">
							<s:message code="U_SPEC_TAG" />
						</label>
						<div class="col-sm-6">
							<input type="text" id="PMItemDialog_uSpecTxt" class="form-control numberCss"/>
						</div>
						<label class="control-label col-sm-4" for="PMItemDialog_lSpecTxt">
							<s:message code="L_SPEC_TAG" />
						</label>
						<div class="col-sm-6">
							<input type="text" id="PMItemDialog_lSpecTxt" class="form-control numberCss"/>
						</div>
						<label class="control-label col-sm-4" for="PMItemDialog_dataTypeSel">
							<s:message code="DATA_TYPE_TAG" />
						</label>
						<div class="col-sm-6">
							<select id="PMItemDialog_dataTypeSel" class="form-control">
								<option value="数值">数值</option>
								<option value="文本">文本</option>
							</select>
						</div>
						<label class="control-label col-sm-4" for="PMItemDialog_sampleQtyTxt">
							<s:message code="SAMPLE_QTY_TAG" />
						</label>
						<div class="col-sm-6">
							<input type="text" id="PMItemDialog_sampleQtyTxt" class="form-control intCss"/>
						</div>
                        <label class="control-label col-sm-4 keyClass" for="PMItemDialog_toolPmNoteTxt">
                            点巡检项目描述
                        </label>
                        <div class="col-sm-6">
                            <input type="text" id="PMItemDialog_toolPmNoteTxt" class="form-control" />
                        </div>
                    </form>
				</div>
				<!--Modal body-->
				<div class="modal-footer">
					<a id="PMItemDialog_cancelBtn" class="btn" data-dismiss="modal"> <s:message code="CANCEL_TAG" />
					</a> <a id="PMItemDialog_saveBtn" class="btn btn-primary"> <s:message code="SURE_TAG" />
					</a>
				</div>
				<!--Modal footer-->
			</div>
		</div>
	</div>
	<%@ include file="/page/comPage/comJS.html"%>
	<script type="text/javascript" src="js/page/3000/3S30.js"></script>
	<script src="lib/fileinput/js/xlsx.full.min.js"></script>
	<script src="lib/laydate/laydate.js"></script>
</body>
</html>